Greg Troxel makes testo less dependent on being bash.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 8 Jun 2015 18:10:04 +0000 (18:10 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 8 Jun 2015 18:10:04 +0000 (18:10 +0000)
gpsbabel/testo
gpsbabel/xmldoc/formats/navilink.xml

index 14cea248c14686581d84f7576b8e20e300cd6625..5d30dc80c33898550b3fba8865e27394ba505d12 100755 (executable)
@@ -38,7 +38,7 @@ bincompare()
                ${OD} $2 >${TMPDIR}/bc2
                ${DIFF} ${TMPDIR}/bc1 ${TMPDIR}/bc2 || {
                echo ERROR binary comparing $*
-               let errorcount=errorcount+1
+               errorcount=`expr $errorcount + 1`
                #exit 1
        }
 }
@@ -47,7 +47,7 @@ compare()
 {
        ${DIFF} -u -b -w $* ||  {
                echo ERROR comparing $*
-               let errorcount=errorcount+1
+               errorcount=`expr $errorcount + 1`
                #exit 1
        } 
 }
@@ -64,7 +64,7 @@ gpsbabel()
        ${PNAME} $* || {
                echo "$PNAME returned error $?"
                echo "($PNAME $*)"
-               let errorcount=errorcount+1
+               errorcount=`expr $errorcount + 1`
                #exit 1
        }
 }
@@ -72,9 +72,9 @@ gpsbabel()
 utf8bomcheck()
 {
   if [ ${RUNNINGVALGRIND} -ne  0 ]; then
-    if [ "$(dd if=$1 bs=1 count=3 2>/dev/null)" == $'\xef\xbb\xbf' ]; then
+    if [ "$(dd if=$1 bs=1 count=3 2>/dev/null)" = $'\xef\xbb\xbf' ]; then
       echo "ERROR: UTF-8 BOM found in $1"
-      let errorcount=errorcount+1
+      errorcount=`expr $errorcount + 1`
     fi
   fi
 }
@@ -82,13 +82,13 @@ utf8bomcheck()
 xmlwfcheck()
 {
   if [ ${RUNNINGVALGRIND} -ne 0 ]; then
-    if which ${XMLWF} >& /dev/null; then
+    if which ${XMLWF} 2>&1 /dev/null; then
       # xmlwf is a bit lame, exit status is always 0
       rm -f ${TMPDIR}/xmlwf.out
       ${XMLWF} $1 2>&1 | tee ${TMPDIR}/xmlwf.out
       if [ -s ${TMPDIR}/xmlwf.out ]; then
         echo "ERROR: xml is not well-formed in $1"
-        let errorcount=errorcount+1
+        errorcount=`expr $errorcount + 1`
       fi
     fi
   fi
@@ -108,7 +108,7 @@ xmlwfcheck()
 # cambridge
 # cup
 
-let errorcount=0;
+errorcount=0
 
 if [ $# -ge 1 ]; then
   while [ $# -ge 1 ];
@@ -144,7 +144,7 @@ if [ ${RUNNINGVALGRIND} -ne  0 ]; then
 fi
 
 if [ ${RUNNINGVALGRIND} -ne  0 ]; then
-  if which ${XMLWF} >& /dev/null; then
+  if which ${XMLWF} 2>&1 /dev/null; then
     echo "Running well-formed XML test"
     for i in ${XMLS}
     do
index 310326f297af4ae46ed15d8f042144f9136d9ee5..a407749f8cbec46ce71161456163549676f1ae29 100644 (file)
@@ -32,5 +32,5 @@
 </para>
 <para>
        Details of the Navilink serial protocol can be found
-       <ulink url="http://wiki.splitbrain.org/navilink">here</ulink>.
+       <ulink url="http://notes.splitbrain.org/navilink">here</ulink>.
 </para>